package com.netposa.datawarehouse.bodysearch.web.vo;

import com.netposa.datawarehouse.component.entity.BodyOriginal;

public class BodyOriginalVO extends BodyOriginal {
   private String deviceName;
   private Double longitude;
   private Double latitude;

   public String getDeviceName() {
      return this.deviceName;
   }

   public Double getLongitude() {
      return this.longitude;
   }

   public Double getLatitude() {
      return this.latitude;
   }

   public void setDeviceName(String deviceName) {
      this.deviceName = deviceName;
   }

   public void setLongitude(Double longitude) {
      this.longitude = longitude;
   }

   public void setLatitude(Double latitude) {
      this.latitude = latitude;
   }

   public boolean equals(Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof BodyOriginalVO)) {
         return false;
      } else {
         BodyOriginalVO other = (BodyOriginalVO)o;
         if (!other.canEqual(this)) {
            return false;
         } else {
            label47: {
               Object this$deviceName = this.getDeviceName();
               Object other$deviceName = other.getDeviceName();
               if (this$deviceName == null) {
                  if (other$deviceName == null) {
                     break label47;
                  }
               } else if (this$deviceName.equals(other$deviceName)) {
                  break label47;
               }

               return false;
            }

            Object this$longitude = this.getLongitude();
            Object other$longitude = other.getLongitude();
            if (this$longitude == null) {
               if (other$longitude != null) {
                  return false;
               }
            } else if (!this$longitude.equals(other$longitude)) {
               return false;
            }

            Object this$latitude = this.getLatitude();
            Object other$latitude = other.getLatitude();
            if (this$latitude == null) {
               if (other$latitude != null) {
                  return false;
               }
            } else if (!this$latitude.equals(other$latitude)) {
               return false;
            }

            return true;
         }
      }
   }

   protected boolean canEqual(Object other) {
      return other instanceof BodyOriginalVO;
   }

   public int hashCode() {
      
      int result = 1;
      Object $deviceName = this.getDeviceName();
      result = result * 59 + ($deviceName == null ? 43 : $deviceName.hashCode());
      Object $longitude = this.getLongitude();
      result = result * 59 + ($longitude == null ? 43 : $longitude.hashCode());
      Object $latitude = this.getLatitude();
      result = result * 59 + ($latitude == null ? 43 : $latitude.hashCode());
      return result;
   }

   public String toString() {
      return "BodyOriginalVO(deviceName=" + this.getDeviceName() + ", longitude=" + this.getLongitude() + ", latitude=" + this.getLatitude() + ")";
   }
}
